package com.czz.manage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.czz.manage.entity.Category;
import com.czz.manage.vo.CategoryNestedVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


/**
 * @ClassName: CategoryService
 * @Author Czz
 * @Date 2019/12/29
 * @Time 10:06
 **/
public interface CategoryService extends IService<Category> {
    void saveParentCategory(Category category);
    void saveChildCategory(Category category);
    Category getParentCategoryByName(String name);
    Category getChildCategoryByName(String name, String parentId);
    void updateCategoryById(Category category);
    Boolean deleteCategoryById(String id);
    List<String> batchImportCategory(MultipartFile file) throws Exception;
    List<CategoryNestedVo> getCategoryNestedList();
    List<CategoryNestedVo> getCategoryPageList(Page<CategoryNestedVo> pageParam,Category category);
}
